//package com.cenxi.config;
//
//import com.cenxi.dao.entity.MinioInfo;
//import io.minio.MinioClient;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@EnableConfigurationProperties(MinioInfo.class)
//public class MinioConfig {
//
//    @Autowired
//    private MinioInfo minioInfo;
//
//    /**
//     * 获取 minioClient
//     */
//    @Bean
//    public MinioClient minioClient() {
//        return MinioClient.builder().endpoint(minioInfo.getEndpoint())
//                .credentials(minioInfo.getAccessKey(), minioInfo.getSecretKey())
//                .build();
//    }
//}
